﻿@model List<V_SerialNoListDataSet.V_SERIALNOLISTRow>
@{
    ViewBag.Title = "序列号管理(列表)";
    Layout = "~/Areas/HomePage/Views/Shared/DefaultLayout.cshtml";
}
@section CssLink
{
    <link href="@Url.Content("~/Content/css/Pager.css")" rel="stylesheet" type="text/css" />
}
@section ScriptContent{
    <script type="text/javascript">
        $(function () {
            $(".serialList").addClass("hover");
        });
    </script>
}
<dl class="right_side_dl">
    <dt class="right_side_dt">序列号管理(列表)</dt>
    <dd class="right_side_dd">
        <dl class="content">
            <dt>@Html.ActionLink("新建", "NewSerailNo")</dt>
            <dd>
                <div style="padding: 5px 0;">
                    <form action="" method="get">
                    手机号码: @Html.TextBox("mobile", null, new { @class = "input_text" })
                    账号: @Html.TextBox("account", null, new { @class = "input_text" })
                    <button type="submit" class="btn">
                        查找</button>
                    </form>
                </div>
            </dd>
            <dd>
                <div class="divPager2 textRight" style="margin: 5px 0;">
                    @{ WriteLiteral(MvcHtmlHelper.Pager(ViewData["Pager"])); }
                </div>
            </dd>
            @{
                int index = 0;
                foreach (var item in Model)
                {
                    bool altRow = (index++) % 2 != 0;
                    string rowClassName = string.Format("{0}", altRow ? "class=c1" : string.Empty);
                <dd>
                    <table width="100%" class="blue_table" style="margin: 5px 0;">
                        <tr @rowClassName>
                            <td class="w70">
                                序列号:
                            </td>
                            <td colspan="3">
                                @item.SN
                            </td>
                            <td class="w70">
                                账号:
                            </td>
                            <td class="w120">
                                @item.EMPACCOUNT
                            </td>
                            <td class="w70">
                            </td>
                            <td class="w120">
                                @Html.ActionLink("编辑", "SerilaNoPost", new { sn = item.SN }, new { target = "_blank" })
                            </td>
                        </tr>
                        <tr @rowClassName>
                            <td>
                                手机号码:
                            </td>
                            <td class="w80">
                                @item.MOBILE
                            </td>
                            <td class="w70">
                                手机串号:
                            </td>
                            <td style="width:126px;">
                                @*3535200281196000*@
                                @item.IMEI
                            </td>
                            <td>
                                手机型号:
                            </td>
                            <td>
                                @item.MOBILEMODEL
                            </td>
                            <td>
                                状态:
                            </td>
                            <td>
                                @*    @Html.DropDownList("Status", new SelectList(ViewData["SerialNoStatus"] as List<object>, "Value", "Text", item.STATUS))*@
                                @SerialHelper.GetStatusDescription(item.STATUS)
                            </td>
                        </tr>
                        <tr @rowClassName>
                            <td>
                                操作系统:
                            </td>
                            <td class="w70">
                                @item.PLATFORM
                            </td>
                            <td>
                                平台版本:
                            </td>
                            <td>
                                @item.PLATFORMVERSION
                            </td>
                            <td>
                                首次登录:
                            </td>
                            <td>
                                @string.Format("{0}", item.IsFIRSTLOGINTIMENull() ? "" : item.FIRSTLOGINTIME.ToString())
                            </td>
                            <td>
                                最后登录:
                            </td>
                            <td>
                                @string.Format("{0}", item.IsLASTLOGINTIMENull() ? "" : item.LASTLOGINTIME.ToString())
                            </td>
                        </tr>
                        <tr @rowClassName>
                            <td class="w70">
                                备注:
                            </td>
                            <td colspan="7">@item.REMARK
                            </td>
                        </tr>
                    </table>
                </dd>
                }
                if (Model.Count < 1)
                {
                <dd>
                    对不起,没有找到结果</dd>
                }
            }
            <dd>
                <div class="divPager2 textRight" style="margin: 5px 0;">
                    @{ WriteLiteral(MvcHtmlHelper.Pager(ViewData["Pager"])); }
                </div>
            </dd>
        </dl>
    </dd>
</dl>
<div class="right_bottom">
</div>
